<?php 
if(isset($_REQUEST['thoigian']) && isset($_REQUEST['vitri']) && isset($_REQUEST['le']) && isset($_REQUEST['style'])){
	$tg=$_REQUEST['thoigian'];
	$vt=$_REQUEST['vitri'];
	$style=$_REQUEST['style'];
	$kt="";
	if($_REQUEST['le']!=''){
		$kt=$_REQUEST['le'];
	}
	?>
		<table>
			<tr><td><input type="text" id="vday" name="vday" value="<?=$kt?>" /></td></tr>
			<tr>
				<td>
					<?php 
						if($kt==''){
							?>
								<input type="button" value="Add" onclick="dayclickok('<?=$tg?>',<?=$vt?>,'<?=$style?>')" />
							<?php 
						}else{
							?>
								<input type="button" value="Edit" onclick="update('<?=$tg?>',<?=$vt?>,'<?=$style?>','up')" />
								<input type="button" value="Delete" onclick="update('<?=$tg?>',<?=$vt?>,'<?=$style?>','del')" />
							<?php 							
						}
					?>
				</td>
			</tr>
		</table>
	<?php 
}
?>